XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
#include <core/common/profiling_unit.h>
◆ ProfilingUnit()
| wolf::ProfilingUnit::ProfilingUnit |
( |
double |
desired_period_sec = -1 | ) |
|
Constructor.
- Parameters
-
| desired_period_sec | Desired period in seconds. Negative value means not specified. Default is -1. |
◆ getAccDuration()
| double wolf::ProfilingUnit::getAccDuration |
( |
| ) |
const |
|
inline |
Get the accumulated duration.
- Returns
- Accumulated duration in seconds.
◆ getAveragePeriod()
| double wolf::ProfilingUnit::getAveragePeriod |
( |
| ) |
const |
|
inline |
Get the average period.
- Returns
- Average period in seconds.
◆ getAvgDuration()
| double wolf::ProfilingUnit::getAvgDuration |
( |
| ) |
const |
|
inline |
Get the average duration.
- Returns
- Average duration in seconds.
◆ getDesiredPeriod()
| double wolf::ProfilingUnit::getDesiredPeriod |
( |
| ) |
const |
|
inline |
Get the desired period.
- Returns
- Desired period in seconds.
◆ getMaxDuration()
| double wolf::ProfilingUnit::getMaxDuration |
( |
| ) |
const |
|
inline |
Get the maximum duration.
- Returns
- Maximum duration in seconds.
◆ getNCallbacks()
| unsigned int wolf::ProfilingUnit::getNCallbacks |
( |
| ) |
const |
|
inline |
Get the number of callbacks.
- Returns
- Number of callbacks.
◆ getStDevDuration()
| double wolf::ProfilingUnit::getStDevDuration |
( |
| ) |
const |
|
inline |
Get the standard deviation of the duration.
- Returns
- Standard deviation of the duration in seconds.
◆ getVarDuration()
| double wolf::ProfilingUnit::getVarDuration |
( |
| ) |
const |
|
inline |
Get the variance of the duration.
- Returns
- Variance of the duration in seconds squared.
◆ isRunning()
| bool wolf::ProfilingUnit::isRunning |
( |
| ) |
const |
|
inline |
Check if profiling is running.
- Returns
- True if profiling is running, false otherwise.
◆ printDuration()
| std::string wolf::ProfilingUnit::printDuration |
( |
double |
_duration_microsec, |
|
|
int |
precision = 2 |
|
) |
| const |
Print provided duration (in us) in the most appropiate units with specified precision.
- Parameters
-
| _duration_microsec | Duration in microseconds. |
| precision | Precision for printing the duration. Default is 2. |
- Returns
- A string representing the duration.
◆ printProfiling()
| void wolf::ProfilingUnit::printProfiling |
( |
const std::string & |
_tabs, |
|
|
std::ostream & |
stream = std::cout |
|
) |
| const |
Print profiling results.
- Parameters
-
| _tabs | Tabs to be used for indentation. |
| stream | Output stream to print the results. Default is std::cout. |
◆ setDesiredPeriod()
| void wolf::ProfilingUnit::setDesiredPeriod |
( |
double |
_desired_period_sec | ) |
|
|
inline |
Set the desired period.
- Parameters
-
| _desired_period_sec | Desired period in seconds. |
◆ startProfiling()
| void wolf::ProfilingUnit::startProfiling |
( |
| ) |
|
◆ stopProfiling()
| void wolf::ProfilingUnit::stopProfiling |
( |
| ) |
|
◆ acc_duration_us_
| std::chrono::microseconds wolf::ProfilingUnit::acc_duration_us_ |
|
protected |
Accumulated duration in microseconds.
◆ average_period_us_
| double wolf::ProfilingUnit::average_period_us_ |
|
protected |
Average period in microseconds.
◆ desired_period_us_
| double wolf::ProfilingUnit::desired_period_us_ |
|
protected |
Desired period in microseconds (< 0 for not specified)
◆ first_clock_
| std::chrono::time_point<std::chrono::high_resolution_clock> wolf::ProfilingUnit::first_clock_ |
|
protected |
Time point of the first clock.
◆ max_duration_us_
| std::chrono::microseconds wolf::ProfilingUnit::max_duration_us_ |
|
protected |
Maximum duration in microseconds.
◆ n_callbacks_
| unsigned int wolf::ProfilingUnit::n_callbacks_ |
|
protected |
◆ running_
| bool wolf::ProfilingUnit::running_ |
|
protected |
True if profiling is running.
◆ start_clock_
| std::chrono::time_point<std::chrono::high_resolution_clock> wolf::ProfilingUnit::start_clock_ |
|
protected |
Time point of the start clock.
◆ var_duration_us_
| double wolf::ProfilingUnit::var_duration_us_ |
|
protected |
Variance of the duration in microseconds squared.
The documentation for this class was generated from the following files: